<?php
/**
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

$loadingpage = $this->countModules('loading');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" slick-uniqueid="1">
<head>
	<jdoc:include type="head" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Mango Tree</title>
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/mango/css/style.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/mango/css/pml.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/mango/css/loading.css">
	
	<!--[if IE]>
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/mango/css/ie.css">
	<![endif]-->
	
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/mango/js/jquery.min.js"></script>
	
	
	<?php if($loadingpage) {?>
	
		
	
	<?php } ?>
	
	<script type="text/javascript">

  
		jQuery(document).ready(function($) {
			$("#load").mouseover(function() {
				$("#load a").addClass("overz");
				setTimeout('$("#effect").fadeIn(2000);', 3500);
				setTimeout('window.location = "home"', 5000);
			});
			
			
			
			var speed = 1500;
			
			//if($.cookie("fadebody") == "1")
			//{
				$("#effect").fadeOut(speed);
			//	$.cookie("fadebody", "0");
			//}
			//else
			//{
				$("#effect").css('display', 'block');
			//}
			
			$("#load").click(function() {
				$("#effect").fadeIn(speed);
				//$.cookie("fadebody", "1");
			});
			
			$("#navbar li").click(function() {
				$("#effect").fadeIn(speed);
				//$.cookie("fadebody", "1");
			});
		});
		
	</script>
</head>
<body>
	<div id="effect" style="position:absolute; height:1500px; width:100%; background:#000; z-index:1000"></div>
<div id="container" <?php if($loadingpage) echo 'class="loadingpage"' ?>>

	<div id="wrapper">

			<jdoc:include type="modules" name="header" />
		
		<div id="main-content" <?php 	if(JRequest::getVar('Itemid')!='101') { echo 'class="inner-page"';	} ?>>
			
			
			<jdoc:include type="modules" name="loading" />
			
			<jdoc:include type="modules" name="middle" />
			<div id="content">
				<div id="sidebar">
					<jdoc:include type="modules" name="sidebar" />
				</div>
				<jdoc:include type="component" />
			</div>


			
		</div>
	</div><!--Wrapper-->
	<div id="footer">
	<div id="foot" <?php if($loadingpage) echo 'style="display:none"' ?>>
		<p class="copy">Copyright Text will be here </p>
		<p class="top3">Designed and Developed by TOP3.COM.SG</p></div>
	</div><!--footer-->
</div><!--container-->
</body>
</html>